﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPagePrincipal.master" AutoEventWireup="true" CodeFile="cas_lista.aspx.cs" Inherits="cas_lista" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">

<script language="javascript" type="text/javascript">

    function Resaltar_On(GridView) {
        if (GridView != null) {
            if (GridView.style.backgroundColor != "#f5f1f4") {
                GridView.originalBgColor = GridView.style.backgroundColor;
                GridView.style.backgroundColor = "#FFFFC4";
            }
            else {
                GridView.originalBgColor = "#f5f1f4";
                GridView.style.backgroundColor = GridView.originalBgColor;
            }
        }
    }

    function Resaltar_Off(GridView) {
        if (GridView != null) {
            if (GridView.style.backgroundColor != "#f5f1f4") {
                GridView.style.backgroundColor = GridView.originalBgColor;
            }
            else {
                GridView.originalBgColor = "#f5f1f4";
                GridView.style.backgroundColor = GridView.originalBgColor;
            }
        }
    }

</script>

<div id="FiltroBusqueda" style="BORDER-RIGHT: #e0e0d0 2px solid; 
                                BORDER-TOP: #e0e0d0 2px solid; 
                                OVERFLOW: auto; 
                                BORDER-LEFT: #e0e0d0 2px solid; 
                                width: 100%;
                                BORDER-BOTTOM: #e0e0d0 2px solid;" >
<table style="width:100%" cellpadding="2" cellspacing="2" border="0" >
    <tr >
        <td style="width:100%; height:5px;" colspan="8"></td>
    </tr>
    <tr >
        <td style="width:1%"></td>
        <td style="width:98%" colspan="6" class="tblBloqHeader">
            <asp:Label ID="lblFiltro" runat="server" Text="Filtros de búsqueda"></asp:Label>
        </td>
        <td style="width:1%"></td>
    </tr>
    <tr >
        <td style="width:100%; height:10px;" colspan="8">
            </td>
    </tr>
    <tr>
        <td style="width:1%"></td>
        <td style="width:17%" class="lblFrm">
            <asp:Label ID="lblDescripcion" runat="server" Text="Descripción"></asp:Label>
        </td>
        <td style="width:25%">
            <asp:TextBox ID="txtDescripcion" runat="server" CssClass="txtupper" width="180px" ></asp:TextBox>
        </td>
        <td style="width:4%"></td>
        <td style="width:17%" class="lblFrm">
            <asp:Label ID="lblDepartamento" runat="server" Text="Departamento"></asp:Label>
        </td>
        <td style="width:23%">
            <asp:DropDownList ID="ddlDepartamento" runat="server" width="180px">
            </asp:DropDownList>
        </td>
        <td style="width:5%"></td>
        <td style="width:1%"></td>
    </tr>
    <tr>
        <td style="width:1%"></td>
        <td style="width:17%" class="lblFrm">
            <asp:Label ID="lblFechaInicio" runat="server" Text="Fecha Inicio"></asp:Label>
        </td>
        <td style="width:25%">
            <asp:TextBox ID="txtFechaInicio" runat="server" CssClass="txtCentro" width="90px"></asp:TextBox>
        </td>
        <td style="width:4%"></td>
        <td style="width:17%" class="lblFrm">
            <asp:Label ID="lblProvincia" runat="server" Text="Provincia"></asp:Label>
        </td>
        <td style="width:23%">
             <asp:DropDownList ID="ddlProvincia" runat="server" width="180px">
            </asp:DropDownList>
        </td>
        <td style="width:5%"></td>
        <td style="width:1%"></td>
    </tr>
    <tr>
        <td style="width:1%"></td>
        <td style="width:17%" class="lblFrm">
            <asp:Label ID="lblFechaFin" runat="server" Text="Fecha Fin"></asp:Label>
        </td>
        <td style="width:25%">
            <asp:TextBox ID="txtFechaFin" runat="server" CssClass="txtCentro" width="90px"></asp:TextBox>
        </td>
        <td style="width:4%"></td>
        <td style="width:17%" class="lblFrm">
            <asp:Label ID="lblDistrito" runat="server" Text="Distrito"></asp:Label>
        </td>
        <td style="width:23%">
            <asp:DropDownList ID="ddlDistrito" runat="server" width="180px">
            </asp:DropDownList>
        </td>
        <td style="width:5%"></td>
        <td style="width:1%"></td>
    </tr>
    <tr>
        <td style="width:1%"></td>
        <td style="width:17%" class="lblFrm">
            <asp:Label ID="lblActor" runat="server" Text="Actor"></asp:Label>
        </td>
        <td style="width:25%">
            <asp:TextBox ID="txtActor" runat="server" CssClass="txtupper" width="180px"></asp:TextBox>
        </td>
        <td style="width:4%"></td>
        <td style="width:17%" class="">
        </td>
        <td style="width:23%"></td>
        <td style="width:5%"></td>
        <td style="width:1%"></td>
    </tr>
</table>
 <br />
</div>
<div> 
<table style="width:100%" cellpadding="2" cellspacing="2" border="0" >
    <tr >
        <td style="width:100%; height:5px;"></td></tr>
    <tr >
        <td style="width:100%; cursor:hand;">
            <asp:GridView style="cursor:hand" ID="grvLista" runat="server" AutoGenerateColumns="False" 
                CellPadding="5" CellSpacing="5"
                CssClass="grilla" Width="100%" ShowFooter="True" DataKeyNames="CodigoCaso" 
                EmptyDataText="NO SE ENCONTRARON LOS REGISTROS SOLICITADOS" 
                onrowdatabound="grvLista_RowDataBound">
                <AlternatingRowStyle CssClass="grilla_alterna" />
                <Columns>
                    <asp:BoundField HeaderText="CodigoCaso" DataField="CodigoCaso" 
                        Visible="False" >
                    <FooterStyle CssClass="grilla_no_border" />
                    <HeaderStyle CssClass="grilla_no_border" />
                    <ItemStyle CssClass="grilla_no_border_left" />
                    </asp:BoundField>
                    <asp:BoundField HeaderText="Nombre" DataField="Nombre" >
                    <FooterStyle CssClass="grilla_no_border" />
                    <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                    <ItemStyle CssClass="grilla_no_border" />
                    </asp:BoundField>
                    <asp:BoundField HeaderText="Ambito" DataField="Ambito" >
                    <FooterStyle CssClass="grilla_no_border" />
                    <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                    <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" 
                        CssClass="grilla_no_border" />
                    </asp:BoundField>
                    <asp:BoundField HeaderText="Descripción" DataField="Descripcion" >
                    <FooterStyle CssClass="grilla_no_border" />
                    <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                    <ItemStyle CssClass="grilla_no_border" />
                    </asp:BoundField>
                    <asp:BoundField HeaderText="Fecha" HtmlEncode="False" DataField="Fecha" 
                        DataFormatString="{0:dd/MM/yyyy}" HtmlEncodeFormatString="False" >
                        <FooterStyle CssClass="grilla_no_border" />
                        <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                        <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" 
                        CssClass="grilla_no_border" />
                    </asp:BoundField>
                </Columns>
                <FooterStyle CssClass="grilla_cabecera" Height="5px" />
                <HeaderStyle CssClass="grilla_cabecera" />
            </asp:GridView>            
        </td>
    </tr>
</table>
</div>
</asp:Content>

